package com.dzxy.bean;

public class Student {
    // 属性
    private String stuName;
    private Integer stuAge;


    // 行为方法

    public void doStuding() {
        System.out.println(this.stuName + " is studing...");
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public Integer getStuAge() {
        return stuAge;
    }

    public void setStuAge(Integer stuAge) {
        this.stuAge = stuAge;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuName='" + stuName + '\'' +
                ", stuAge=" + stuAge +
                '}';
    }
}
